import request from '@/utils/request'

// 查询表单配置列表
export function listFlowform(query) {
  return request({
    url: '/flowable/form/list',
    method: 'get',
    params: query
  })
}

// 查询表单配置详细
export function getFlowform(id) {
  return request({
    url: '/flowable/form/' + id,
    method: 'get'
  })
}

// 新增表单配置
export function addFlowform(data) {
  return request({
    url: '/flowable/form',
    method: 'post',
    data: data
  })
}

// 修改表单配置
export function updateFlowform(data) {
  return request({
    url: '/flowable/form',
    method: 'put',
    data: data
  })
}

// 删除表单配置
export function delFlowform(id) {
  return request({
    url: '/flowable/form/' + id,
    method: 'delete'
  })
}
// 获取流程业务配置
export function getDeployForm(id) {
  return request({
    url: '/flowable/form/getDeployForm/' + id,
    method: 'get'
  })
}
// 挂载业务
export function addDeployForm(data) {
  return request({
    url: '/flowable/form/addDeployForm',
    method: 'post',
    data: data
  })
}
